Text File | 1992-07-15 | 651 b | 22 lines | [TEXT/ttxt]
deleteEmptyDir and listEmptyDir
sample MPW tools
deleteEmptyDir and listEmptyDir identify all empty folders on a specified volume. If the tool is named deleteEmptyDir, the directories will be removed.
This purpose of this snippet is to show how easy (hah!) and useful (well, yeah) the PBCatSearch call is.
Note that deleteEmptyDir and listEmptyDir are identical; the tool just checks its name when running, and if it is 'deleteEmptyDir', calls FSpDelete for each empty directory found.